package com.jalarbee.web.jsf.controller;

import com.jalarbee.liquid.security.service.SecurityContextService;
import java.io.Serializable;
import javax.faces.bean.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;

/**
 *
 * @author Abdoulaye <b>Ikhnaton</b> Diallo
 */

@Named(value="securityContextController")
@SessionScoped
public class SecurityContextController implements Serializable {

    @Inject
//    @Named(value="securityContextService")
    private SecurityContextService securityContextService;
    
    public SecurityContextController() {
    }

    public void setSecurityContextService(SecurityContextService securityContextService) {
        this.securityContextService = securityContextService;
    }

    public String getName() {
        return securityContextService.getUsername();
    }
}
